define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {


		//返回信息
		return {
			//获取页面数据
			get_getlist: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.packets.getlist';

				//post请求
				Http.post(param, callback, error, done);
			},

			//获取页面数据
			get_postlist: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.packets.postlist';

				//post请求
				Http.post(param, callback, error, done);
			},


			receive: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.packets.receive';

				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Redpocket", factory);
});